package com.example.myapplication.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * 文件名：OrderBeanHelper
 * 描述：订单
 */
public class OrderBeanHelper extends SQLiteOpenHelper {

    public static final String CREATE_USER = "create table OrderBean ("
            + "id integer primary key autoincrement, "
            + "user_id text, "
            + "count text, "
            + "title text, "
            + "url text, "
            + "content text, "
            + "merchatid integer, "
            + "price text, "
            + "goods_type text, "
            + "address text, "
            + "detail_address text, "
            + "state text, "
            + "address_id text)";

    public OrderBeanHelper(Context context, String name, SQLiteDatabase.CursorFactory factory,
                      int version) {
        super(context, name, factory, version);
        // TODO Auto-generated constructor stub
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        // TODO Auto-generated method stub

        db.execSQL(CREATE_USER);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
        // TODO Auto-generated method stub

    }

}
